<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>数据绑定方法</title>
	<script src="lib/js/vue.js"></script>
</head>
<body>
	<div id="example-2">
	  <p v-if="greeting">Hello!</p>
	</div>

	<script>
		var vm = new Vue({
		  data: {
		    a: 1
		  },
		  created: function () {
		    // `this` 指向 vm 实例
		    console.log('a is: ' + this.a)
		  }
		})
		// -> "a is: 1"
	</script>
</body>
</html>